ActiveReports 8 > ActiveReports User Guide > Getting Started > Viewing Reports > Using the WPF Viewer |
ActiveReports provides the WPF Viewer that you can use to load and view your reports. This viewer contains a toolbar and a sidebar with Thumbnails, Search results, Document map and Parameters panes.
Warning: The TargetInvocationException occurs on running a WPF browser application in Partial Trust. Refer to Running WPF Viewer in Partial Trust section given below to run your WPF Browser Application in Partial Trust. To ensure that you are using Full Trust:
|
WPF Viewer Toolbar
WPF Viewer Sidebar
Set up your WPF Application project by using the following steps.
Note: Dragging the Viewer control to the design view of MainWindow.xaml automatically adds the corresponding reference to the licenses.licx file. |
Note: Refer to the LoadDocument method to see other ways to load a report in WPF Viewer. |
To write the code in Visual Basic.NET
To write the code in C#
Following is an introduction to the additional capabilities of the Viewer to guide you on using it effectively.
Keyboard Shortcuts
You can run a WPF Viewer Browser Application in Partial Trust by customizing the permission set in the app.mainfest file. While customizing the permission set, some of the permissions are to be set explicitly like MediaPermission, UIPermission, etc. Follow these steps to learn how to run a WPF Viewer application in partial trust.
Note: These steps assume that you have already created a WPF Browser Application that contains the WPF Viewer control. |
Code
Note: The Partial Trust Limitations are applicable to the WPF viewer running in Partial Trust. For more information, see Medium Trust Support. |